package com.lframework.xingyun.basedata.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import com.lframework.starter.web.core.dto.BaseDto;
import com.lframework.starter.web.core.entity.BaseEntity;
import lombok.Data;

/**
 * <p>
 * 商品规格成本明细
 * </p>
 *
 */
@Data
@TableName("base_data_product_spec_cost_detail")
public class ProductSpecCostDetail extends BaseEntity implements BaseDto {

    private static final long serialVersionUID = 1L;

    public static final String CACHE_NAME = "ProductSpecCostDetail";

    /**
     * ID
     */
    private String id;

    /**
     * 主商品id
     */
    private String mainProductId;

    /**
     * 属性id
     */
    private String propertyId;

    /**
     * 属系值id
     */
    private String itemId;

    /**
     * 源成分商品ID
     */
    private String sourceProductId;

    /**
     * 成分商品ID
     */
    private String productId;

    /**
     * 消耗单位ID
     */
    private String unitId;

    /**
     * 消耗数量
     */
    private Integer consumeQuantity;

    /**
     * 类型 0=主成分 1=替换品
     */
    private Integer type;

    /**
     * 单位成本
     */
    private BigDecimal unitCost;

    /**
     * 总成本
     */
    private BigDecimal totalCost;

}
